<%@ page language="java" import="gt.service.*,java.util.*,gt.domain.*" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>客户信息查询</title>
</head>
<body>
<%
	String searchmode=request.getParameter("searchmode");
	String inputInfo=request.getParameter("inputInfo");
	System.out.println(searchmode);
	System.out.println(inputInfo);
	if("nodata".equals(searchmode)){
		;
	}
	if("khxx_id".equals(searchmode)){
		KhxxService khxxService = new KhxxService();
		Khxx khxxInfo=khxxService.getKhxxById(inputInfo);
		request.setAttribute("khxxInfo",khxxInfo);
		
		
		
	}
	if("khxx_mc".equals(searchmode)){
		KhxxService khxxService = new KhxxService();
		Khxx khxxInfo=khxxService.getKhxxByMc(inputInfo);
		request.setAttribute("khxxInfo", khxxInfo);
		
	}
%>
<img alt="" src="/ClientManager/images/khxx_search.png">

<hr>
<form action="khxx_search.jsp" method="post" target="right">
	<table height="50px" width="400px" border="1" cellspacing="0"  align="left">
	<tr><th align="center" valign="bottom" bgcolor="#FFCC33">查询方式</th><th align="center" valign="bottom" bgcolor="#FFCC33">查询输入</th><th align="center" valign="bottom" bgcolor="#FFCC33">操作</th></tr>
	<tr><td><select name="searchmode" ><option value="nodata">-------请选择-------</option><option value="khxx_id">按客户ID查询</option><option value="khxx_mc">按客户名称查询</option></select></td><td><input type="text" name="inputInfo"></td><td align="center"><input style="font-size: 15px" type="submit" value="查询"></td></tr>
 </table>
</form>
<hr>
<br>
<br>
<br>
<table width="600px" border="1" cellspacing="0" align="left">
	<tr><th bgcolor="#FFCC33" ><font size="2">客户名称</font></th><td>${khxxInfo.khxx_mc}</td><th bgcolor="#FFCC33" ><font size="2">企业性质</font></th><td>${khxxInfo.khxx_qyxz}</td></tr>
	<tr><th bgcolor="#FFCC33" ><font size="2">企业类型</font></th><td>${khxxInfo.khxx_qylx}</td><th bgcolor="#FFCC33" ><font size="2">企业资信</font></th><td>${khxxInfo.khxx_qyzx}</td></tr>
	<tr><th bgcolor="#FFCC33" ><font size="2">企业地址</font></th><td>${khxxInfo.khxx_qydz}</td><th bgcolor="#FFCC33" ><font size="2">所属省份</font></th><td>${khxxInfo.khxx_szsf}</td></tr>
	<tr><th bgcolor="#FFCC33" ><font size="2">公司邮编</font></th><td>${khxxInfo.khxx_gsyb}</td><th bgcolor="#FFCC33" ><font size="2">所属城市</font></th><td>${khxxInfo.khxx_szcs}</td></tr>
	<tr><th bgcolor="#FFCC33" ><font size="2">法人代表</font></th><td>${khxxInfo.khxx_frdb}</td><th bgcolor="#FFCC33" ><font size="2">纳税号</font></th><td>${khxxInfo.khxx_nsh}</td></tr>
	<tr><th bgcolor="#FFCC33" ><font size="2">开户银行</font></th><td>${khxxInfo.khxx_khyh}</td><th bgcolor="#FFCC33" ><font size="2">开户银行账号</font></th><td>${khxxInfo.khxx_yhzh}</td></tr>
	<tr><th bgcolor="#FFCC33" ><font size="2">公司网址</font></th><td>${khxxInfo.khxx_gswz}</td><th bgcolor="#FFCC33" ><font size="2">客户IC卡号</font></th><td>${khxxInfo.khxx_ICcard}</td></tr>
	<tr><th bgcolor="#FFCC33" ><font size="2">公司电话</font></th><td>${khxxInfo.khxx_gsdh}</td><th bgcolor="#FFCC33" ><font size="2">公司传真</font></th><td>${khxxInfo.khxx_gscz}</td></tr>
	<tr><th bgcolor="#FFCC33" ><font size="2">主要联系人</font></th><td>${khxxInfo.khxx_lxr}</td><th bgcolor="#FFCC33" ><font size="2">联系人电话</font></th><td>${khxxInfo.khxx_lxrdh}</td></tr>
	<tr><th bgcolor="#FFCC33" ><font size="2">客户级别</font></th><td>${khxxInfo.khxx_khjb}</td><th bgcolor="#FFCC33" ><font size="2">备注信息</font></th><td>${khxxInfo.khxx_bz}</td></tr>

</table>
</body>
</html>